/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.upc.dew.horario404.controller;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Web application lifecycle listener.
 * @author pcsilshi
 */
public class TestListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("Inicializando");
        sce.getServletContext().setAttribute("global", "variable global");
    }

    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("Finalizando");
    }
}
